#include "cppunit/extensions/TestFactoryRegistry.h"
#include "cppunit/ui/text/TextTestRunner.h"

int main(char argc, char** argv) {
    CppUnit::TextTestRunner runner;
    CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry();
    runner.addTest(registry.makeTest());
    bool was_successful = runner.run("", false);
    return was_successful ? 0 : 1;  // 0 for success, 1 for failure
}